#ifndef __BSP_BLUETOOTH_H__
#define __BSP_BLUETOOTH_H__

#include "gd32f4xx.h"
#include "Usart.h"

#define BT_NAME								"JDY-33-SPP"
#define BT_SEND_BYTE(data)					Usart5_send_byte(data)
#define BT_SEND_DATA(data, len)				Usart5_send_data(data, len)	
#define BT_SEND_STRING(str)					Usart5_send_string(str)	
#define BT_ON_INNER_RECV					Usart5_recv

#ifndef u8
#define u8 uint8_t
#endif

#ifndef u16
#define u16 uint16_t
#endif

#ifndef u32
#define u32 uint32_t
#endif


void BT_init();

void BT_send_byte(uint8_t data);

void BT_send_string(char* data);


extern void BT_recv(uint8_t *data, uint32_t len);

#endif